#ifndef BOITE_H
#define BOITE_H

#include "Point.h"
#include "Rayon.h"
#include <cfloat>

class BoiteEnglobante {

protected:
	Point centre;
	double demiAreteX;
	double demiAreteY;
	double demiAreteZ;
	bool used;

public:
	BoiteEnglobante(){}
	BoiteEnglobante(double x, double y, double z, const Point & c):demiAreteX(x/2), demiAreteY(y/2), demiAreteZ(z/2), centre(c), used(true){}
	~BoiteEnglobante(){}
	bool intersection(const Rayon &);
	bool isUsed() {return used;}
	void setUsed (bool u) {used = u;}
};
#endif